<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // for (var i = 0; i <= 9; i++) {

        //     for (var c = 0; c <= 9; c++) {
        //         document.write("*    ")
        //     }
        //     document.write("</br>")

        // }

        // 乘法表
        for (var i = 1; i <= 9; i++) {

            for (var c = 1; c <= i; c++) {
                
                document.write(c+"*"+i+"="+(i*c)+" ")
            }
            document.write("</br>")

        }


    </script>


</body>

</html>